﻿<%@ Page Language="C#" MasterPageFile="~/major/590202/MajorPage.master" AutoEventWireup="true" CodeFile="ResourceList.aspx.cs" Inherits="major_590202_ResourceList" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Jxzy_Database %>" >
    
</asp:SqlDataSource>
<div id="pathbar">
<div class="left">当前位置：应用电子技术::<%Response.Write(getData.getResourceTypeName(Convert.ToInt32(Request.QueryString["rstype"])));%></div> 
                          <div class="right">
                          <form action="#">资源检索：				
						  <input name="keyword" type="text" size="20" onmouseover="this.focus();" onfocus="this.select();" />			
				          <select name="">
				          <option value="1" selected="selected">关键词</option>
				          <option value="2">资源名称</option>
				          </select>
			              <input type="submit" value="检索"/>
			              </form>
			              </div>
</div>
<div id="parameter">
		<div id="counav">
			<h3 class="counav"><span>最新资源</span></h3>
			<ul>
				<%  Response.Write(getData.getCourseList("590202", Request));  %>
			</ul>
			
        </div>
		<div id="quinav">
			<h3 class="quinav"><span>推荐资源</span></h3>
			<ul>
			    <%Response.Write(getData.getList("590202",2,2,0,10,10,"myclick")); %>
			</ul>
        </div>

	</div>
	
	<div id="mainsupport">
	<div class="listbar1">		
	    <div class="left1">资 源 列 表</div>	
	</div>
	<div id="content">
        <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" 
            AutoGenerateColumns="False" DataKeyNames="Resource_ID" Width="100%" 
            AllowPaging="True" PageSize="20">
            <Columns>
                <asp:BoundField DataField="Resource_TypeName" HeaderText="类型" ReadOnly="True" SortExpression="Resource_TypeName">
                    <ItemStyle Width="15%" />
                </asp:BoundField>
                <asp:HyperLinkField DataNavigateUrlFields="Resource_ID" DataNavigateUrlFormatString="ResourceShow.aspx?rsid={0}"
                    DataTextField="Resource_Name" HeaderText="资源名称">
                    <ItemStyle Width="50%" />
                </asp:HyperLinkField>
                <asp:BoundField DataField="Resource_AddDate" DataFormatString="{0:d}" HeaderText="入库时间"
                    HtmlEncode="False" SortExpression="Resource_AddDate">
                    <ItemStyle Width="15%" />
                </asp:BoundField>
                <asp:BoundField DataField="Resource_Visit" HeaderText="访问量" SortExpression="Resource_Visit">
                    <ItemStyle Width="10%" />
                </asp:BoundField>
                <asp:BoundField DataField="Resource_Size" HeaderText="大小(KB)" SortExpression="Resource_Size">
                    <ItemStyle Width="10%" />
                </asp:BoundField>
            </Columns>
            <EmptyDataTemplate>
                没有找到资源！
            </EmptyDataTemplate>
        </asp:GridView>
	</div></div>
</asp:Content>

